package atm;

import javax.swing.*;
import java.awt.*;

/**
 * 改密界面
 */
public class ChangePwdPanel extends JPanel {
    private ImageIcon chang= new ImageIcon("Tu/buttonModify.jpg");
    private JLabel accountLabel = new JLabel("修改密码：");
    private JLabel accountLabel1 = new JLabel("新密码：");
    private JTextField accountField = new JTextField();
    private JTextField accountField1 = new JTextField();

    private Font font = new Font("黑体",Font.BOLD,30);//   设置字体大写


    private JButton loginBtn = new JButton(chang);



    public ChangePwdPanel(){
        this.setLayout(null);
        accountLabel.setBounds(250,200,220,50);
        accountLabel.setFont(font);
        accountField.setBounds(400,200,250,50);    //输入空格
        accountLabel.setFont(font);
        accountLabel1.setBounds(250,260,250,50);
        accountLabel1.setFont(font);
        accountField1.setBounds(400,260,250,50);    //输入空格
        accountLabel1.setFont(font);





        loginBtn.setBounds(700,350,140,50);


        this.add(accountLabel);
        this.add(accountField);
        this.add(accountLabel1);
        this.add(accountField1);
        this.add(loginBtn);


        this.setOpaque(false);

    }

}
